import request from '@/utils/request'

export function listQuote(query) {
  return request({
    url: '/mes/md/quotation-order/list',
    method: 'get',
    params: query
  })
}

export function getQuote(quoteId) {
  return request({
    url: '/mes/md/quotation-order/' + quoteId,
    method: 'get'
  })
}

export function addQuote(data) {
  return request({
    url: '/mes/md/quotation-order',
    method: 'post',
    data: data
  })
}

export function updateQuote(data, id) {
  return request({
    url: '/mes/md/quotation-order/' + id,
    method: 'put',
    data: data
  })
}

export function delQuote(id) {
  return request({
    url: '/mes/md/quotation-order/' + id,
    method: 'delete'
  })
}

export function getQuoteItem(quoteCode) {
  return request({
    url: '/mes/md/quotation-order/quoteItem/' + quoteCode,
    method: 'get'
  })
}

